package cnn.user.service;

import cnn.sys.RestSession;
import cnn.topfox.service.MultiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 聚合service
 */
@Service
public class DemoMultiService extends MultiService<RestSession> {
    @Autowired UserService userService;
    @Autowired DeptService deptService;

    @Override
    public void init() {

    }

    public void test(){
        attributes().put("key1","value1");

        restSession().getUserId();

        userService.listObjects(select().where());

        userService.listObjects(where().all());
    }

}